//
//  AsyncRequest.h
//  PlugHunter
//
//  Created by siloon on 6/2/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SLFoundation.h"

@class SLAsyncRequest;

@protocol SLAsyncRequestDelegate <NSObject>

@required
- (void)request:(SLAsyncRequest *)request didFailWithError:(NSError *)error;
- (void)request:(SLAsyncRequest *)request didFinishWithData:(id)data;

@end

@interface SLAsyncRequest : NSOperation {
    
}

@property (nonatomic, assign) id<SLAsyncRequestDelegate> delegate;

- (void)notifyDelegateWithError:(NSError *)error;
- (void)notifyDelegateWithData:(id)data;

@end
